package com.easy.common.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor//构造方法
@NoArgsConstructor//无参构造方法
@TableName("`order`")
public class Order implements java.io.Serializable{
    private static final long serialVersionUID = 1L;
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private Integer user_id;
    private Integer driver_id;
    private String start_address;
    private BigDecimal start_lng;
    private BigDecimal start_lat;
    private String end_address;
    private BigDecimal end_lng;
    private BigDecimal end_lat;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime order_time;
    private LocalDateTime start_time;
    private LocalDateTime end_time;
    private Integer status;
    private BigDecimal distance;
    private BigDecimal price;
    private Integer payment_status;
    private LocalDateTime pay_time;
    private Integer isdel;
}
